package ch.sfug.player {	import ch.sfug.events.PlayerEvent;	import ch.sfug.player.AbstractPlayer;		/**	 * @author mich	 */	public class EndState extends AbstractPlayerState {				public function EndState( player:AbstractPlayer ) {			super( player );		}				public override function pause():void {			// nothing to do already already paused/ended		}						public override function stop():void {			player.stopPlayer();			player.setState( new StopState(player ) );		}						public override function play():void {			player.restartPlayer();			player.setState( new PlayState( player ) );		}				public override function seek( time:Number ):void {			player.seekFromEndTo( time );			player.setState( new PlayState( player ) );		}				public override function dispatchState( ):void {			player.dispatchEvent( new PlayerEvent( PlayerEvent.END ) );		}				public override function isAtEnd():Boolean {			return true;		}	}}